public static IWebHost BuildWebHost(string[] args) => WebHost.CreateDefaultBuilder(args) .UseStartup<Startup>() .UseKestrel(o => { o.Limits.KeepAliveTimeout = TimeSpan.FromMinutes(10); }) .Build(); }